home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / basics / mfc simpleedit.win / simpleeditmfcview.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.0 KB  |  70 lines

  1. // SimpleEdit MFCView.h : interface of the CSimpleEditMFCView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #include "CQuickTime.h"
  5.  
  6. class CSimpleEditMFCView : public CView
  7. {
  8. protected: // create from serialization only
  9.     CSimpleEditMFCView();
  10.     DECLARE_DYNCREATE(CSimpleEditMFCView)
  11.  
  12. // Attributes
  13. public:
  14.     CSimpleEditMFCDoc* GetDocument();
  15.     LRESULT ProcessEvent (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); 
  16.     CString    mfullPath;
  17.     CQuickTime *pQuickTime;        // QuickTime object
  18.     BOOL OpenMovie(void);        // Open a movie
  19.     void CloseMovie(void);        // Close a movie
  20.  
  21. // Operations
  22. public:
  23.  
  24. // Overrides
  25.     // ClassWizard generated virtual function overrides
  26.     //{{AFX_VIRTUAL(CSimpleEditMFCView)
  27.     public:
  28.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  29.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  30.     protected:
  31.     virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  32.     //}}AFX_VIRTUAL
  33.  
  34. // Implementation
  35. public:
  36.     virtual ~CSimpleEditMFCView();
  37. #ifdef _DEBUG
  38.     virtual void AssertValid() const;
  39.     virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41.  
  42. protected:
  43.  
  44. // Generated message map functions
  45. protected:
  46.     //{{AFX_MSG(CSimpleEditMFCView)
  47.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  48.     afx_msg void OnDestroy();
  49.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  50.     afx_msg void OnFileNew();
  51.     afx_msg void OnFileClose();
  52.     afx_msg void OnFileSaveAs();
  53.     afx_msg void OnEditUndo();
  54.     afx_msg void OnEditCut();
  55.     afx_msg void OnEditCopy();
  56.     afx_msg void OnEditPaste();
  57.     afx_msg void OnEditClear();
  58.     afx_msg void OnEditSelectall();
  59.     afx_msg void OnSize(UINT nType, int cx, int cy);
  60.     //}}AFX_MSG
  61.     DECLARE_MESSAGE_MAP()
  62. };
  63.  
  64. #ifndef _DEBUG  // debug version in SimpleEdit MFCView.cpp
  65. inline CSimpleEditMFCDoc* CSimpleEditMFCView::GetDocument()
  66.    { return (CSimpleEditMFCDoc*)m_pDocument; }
  67. #endif
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70.